Skip to content

Add check for spelling “WordPress” correctly - #488

Merged
kafleg merged 3 commits into
masterfrom
add/wp-spelling-check
Aug 21, 2026
Merged

Add check for spelling “WordPress” correctly#488
kafleg merged 3 commits into
masterfrom
add/wp-spelling-check

Conversation

@carolinan

@carolinan carolinan commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

Closes #131

Checks for wordpress, wordpres, word press.
Skips attributes, block comments, query parameters, etc.

AI usage: this was all written by Copilot.

Testing instructions:
Add the following to an HTML template in a block theme

<!-- wp:social-links -->
<ul class="wp-block-social-links"><!-- wp:social-link {"url":"#hej","service":"wordpress"} /--></ul>
<!-- /wp:social-links -->
 @wordpress
 https://wordpress.org/support/article/404-error-not-found/
 wordpress
 WordPres

Run Theme Check on that theme.
The result should mention the two errors:

REQUIRED: Found incorrect spelling or capitalization of WordPress in the file templates/404.html. Always use WordPress in text.
Line 7: wordpress
Line 8: WordPres

Checks for wordpress, wordpres, word press.
Skips attributes, block comments,  query parameters, etc.
@kafleg
kafleg merged commit 3ba263c into master Aug 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spell “WordPress” correctly [Required]

2 participants